home *** CD-ROM | disk | FTP | other *** search
- /***
- *
- * CSavePort.h - Save a automatically restore the current port
- * Copyright © 1995 by Christopher E. Hyde. All rights reserved.
- *
- * Version 1.1.1 11/95
- *
- ***/
-
- #pragma once
-
- #include <Quickdraw.h>
-
- class CSavePort {
- GrafPtr fPort;
- public:
- CSavePort (void) { GetPort(&fPort); }
- CSavePort (GrafPtr aPort) { GetPort(&fPort); SetPort(aPort); }
- ~CSavePort (void) { SetPort(fPort); }
- GrafPtr ThePort (void) const { return fPort; }
- };
-